// 登录接口需要携带的参数类型
export interface loginForm{
  username: string,
  password: string
}

interface dataType{
  token?: string,
  message?: string
}

export interface loginResData{
  code: number,
  data: dataType
}

interface userInfo{
  userId: number,
  avatar: string,
  username: string,
  password: string,
  desc: string,
  roles: string[],
  buttons: string[],
  routes: string[],
  token: string
}

interface user{
  checkUser: userInfo,
}

// 用户信息相关接口
export interface userInfoResData{
  code: number,
  data: user
}